home *** CD-ROM | disk | FTP | other *** search
- 8,2
- .MCD 11000 0
- .TXT 1 0 1 17
- 1,17
- DEFINING ARRAYS
- .TXT 2 4 1 52
- 1,52
- You can also use range variables to define arrays.
- .TXT 2 0 1 13
- 1,13
- Try it now:
- .TXT 0 14 1 38
- 1,38
- 1. k is already defined at right -->
- .EQN 0 43 1 12
- ! rd=d ct=10 im=i et=3 zt=15 pr=3 mass length time charge
- k:1;4
- .TXT 1 -43 1 27
- 1,27
- 2. Type the array name: x
- .TXT 1 0 1 50
- 1,50
- 3. Type a left bracket ([) to create a subscript
- .TXT 1 0 1 36
- 1,36
- 4. Type the range variable name: k
- .TXT 1 0 1 21
- 1,21
- 5. Type a colon (:)
- .TXT 1 0 1 19
- 1,19
- 6. Type this: k+5
- .TXT 1 0 1 18
- 1,18
- 7. Press [Enter]
- .TXT 1 0 1 38
- 1,38
- 8. To see the values of k, type x[k=
- .TXT 2 0 3 27
- 3,27
- When you're done, the
- equation and table should
- look like this:
- .EQN 0 28 2 13
- x[k:k+5
- .EQN 2 0 6 5
- x[k=
- .TXT 6 -46 1 50
- 1,50
- (Press [F6] to go back to the tutorial menu ...)
-